home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
lcppb.zip
/
LCPPANS.ZIP
/
BORDER.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1991-07-08
|
873b
|
37 lines
// border.cpp -- Test window border styles
#include <iostream.h>
#include <conio.h>
#include <stdio.h>
#include "window.h"
main(int argc, char *argv[])
{
cwindow *theWindow;
int windowType;
char string[80];
if (argc < 2)
windowType = 3;
else
windowType = atoi(argv[1]);
winStruct ws = { 4, 44, 31, 18, 0x07, 0x1f, 0x70, windowType };
cwindow::startup();
theWindow = new cwindow(ws, " Border Test ");
theWindow->showWindow();
theWindow->gotorc(4, 3);
sprintf(string, "Type == %d", windowType);
theWindow->puts(string);
while (!kbhit()) /* wait */ ;
theWindow->hideWindow();
cwindow::shutDown();
}
// Copyright (c) 1990 by Tom Swan. All rights reserved
// Revision 1.00 Date: 12/06/1990 Time: 08:28 am
// Revision 1.01 Date: 07/08/1991 Time: 05:41 pm
// Converted for Borland C++ 2.0